package com.edu.feign;

import com.edu.entity.CommonResult;
import com.edu.entity.Good;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
@FeignClient("good-provider-server")
public interface GoodServiceProviderService {
    //配置需要调用的挂号服务接口。与GoodController中的方法定义一致
    @PostMapping("/good/addGood")
    CommonResult<Good> addGood(@RequestBody Good good);

    @PutMapping("/good/updateGood")
    CommonResult<Good> updateGood(@RequestBody Good good);

    @DeleteMapping("/good/deleteGoodById/{goodId}")
    CommonResult<Good> deleteGoodById(@PathVariable("goodId") Integer goodId);

}
